#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "OLED.h"
#include "Encode.h"

int16_t Num;

int main()
{
	OLED_Init();
	Encode_Init();
	OLED_ShowString(1,1,"Num:");
	while(1)
	{
		Num += Encode_Get();
		OLED_ShowSignedNum(1,7,Num,5);
	}
}

